package cn.yunbamboos.media.zlm.client.result.data;

import com.alibaba.fastjson2.JSONObject;

public class DelStreamProxyResultData  implements IResultData {

    private boolean flag;

    @Override
    public void decode(JSONObject body) {
        if(body != null && body.containsKey("data")) {
            JSONObject data = body.getJSONObject("data");
            if(data != null && data.containsKey("flag")) {
                this.flag = data.getBoolean("flag");
            }
        }
    }

    public boolean isFlag() {
        return flag;
    }
}
